package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.IndustryMapper;
import com.wanmait.recruitment.pojo.Industry;
import com.wanmait.recruitment.service.IndustryService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndustryServiceImpl implements IndustryService {
    @Resource
    private IndustryMapper industryMapper;

    @Override
    public void insert(Industry object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Industry object) {

    }
    @Override
    public  List<Industry>findAllById(Integer id){

        return  industryMapper.selectList();


    }
    @Override
    public Industry findById(Integer id) {
        return null;
    }

    @Override
    @Cacheable("industryCache")
    public List<Industry> findAll() {
        return industryMapper.selectList();
    }
    @Override
    public  List<Industry>findAlls(){
        return  industryMapper.selectFindAll();
    }

    @Override
    public Industry findByName(String name) {
        return industryMapper.findByName(name);
    }

    @Override
     public  List<Industry>findAllhy(){
        return  industryMapper.selectHots();
     }


    @Override
    public List<Industry> findAll(Industry object) {
        return null;
    }


    @Override
    public PageInfo<Industry> findPage(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public List<Industry> findHots() {
        return industryMapper.selectHots();
    }

    @Override
    public List<Industry> FindHots() {
        return industryMapper.selectHots();
    }

    @Override
    public List<Industry> findAllImportant() {
        return industryMapper.findAllImportant();
    }

}
